package com.maigao.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author fuwei
 * @className LocationDTO
 * @description TODO
 * @date 2022/6/28 22:47
 */

public class LocationDTO {

    @JsonProperty("address")
    private String address;
    @JsonProperty("content")
    private ContentDTO content;
    @JsonProperty("status")
    private Integer status;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public ContentDTO getContent() {
        return content;
    }

    public void setContent(ContentDTO content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public static class ContentDTO {
        @JsonProperty("address")
        private String address;
        @JsonProperty("address_detail")
        private AddressDetailDTO addressDetail;
        @JsonProperty("point")
        private PointDTO point;

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public AddressDetailDTO getAddressDetail() {
            return addressDetail;
        }

        public void setAddressDetail(AddressDetailDTO addressDetail) {
            this.addressDetail = addressDetail;
        }

        public PointDTO getPoint() {
            return point;
        }

        public void setPoint(PointDTO point) {
            this.point = point;
        }

        public static class AddressDetailDTO {
            @JsonProperty("adcode")
            private String adcode;
            @JsonProperty("city")
            private String city;
            @JsonProperty("city_code")
            private Integer cityCode;
            @JsonProperty("district")
            private String district;
            @JsonProperty("province")
            private String province;
            @JsonProperty("street")
            private String street;
            @JsonProperty("street_number")
            private String streetNumber;

            public String getAdcode() {
                return adcode;
            }

            public void setAdcode(String adcode) {
                this.adcode = adcode;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public Integer getCityCode() {
                return cityCode;
            }

            public void setCityCode(Integer cityCode) {
                this.cityCode = cityCode;
            }

            public String getDistrict() {
                return district;
            }

            public void setDistrict(String district) {
                this.district = district;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public String getStreet() {
                return street;
            }

            public void setStreet(String street) {
                this.street = street;
            }

            public String getStreetNumber() {
                return streetNumber;
            }

            public void setStreetNumber(String streetNumber) {
                this.streetNumber = streetNumber;
            }
        }

        public static class PointDTO {
            @JsonProperty("x")
            private String x;
            @JsonProperty("y")
            private String y;

            public String getX() {
                return x;
            }

            public void setX(String x) {
                this.x = x;
            }

            public String getY() {
                return y;
            }

            public void setY(String y) {
                this.y = y;
            }
        }
    }
}
